//
//  PlanCell.h
//  SportSocial
//
//  Created by yull on 15/2/3.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PlanInfo.h"

@class PlanRunCell;

@protocol PlanRunCellDelegate <NSObject>

- (void)runWithPlanInfo:(PlanInfo *)planInfo;

- (void)takePhotoWithPlanInfo:(PlanInfo *)planInfo;

- (void)shareWithPlanInfo:(PlanInfo *)planInfo;

- (void)deleteInfo:(PlanInfo *)planInfo;

- (void)selectTimeInCell:(PlanRunCell *)runCell;

@end

@interface PlanRunCell : UICollectionViewCell <UIAlertViewDelegate>

@property (nonatomic, strong) PlanInfo *planInfo;

@property (nonatomic, strong) UIImageView *iconImageView;

@property (nonatomic, strong) UIButton *photoButton;

@property (nonatomic, strong) UIButton *shareButton;

@property (nonatomic, strong) UIButton *deleteButton;

@property (nonatomic, strong) UILabel *distanceLabel;

@property (nonatomic, strong) UILabel *placeLabel;

@property (nonatomic, strong) UILabel *calorieLabel;

@property (nonatomic, assign) id <PlanRunCellDelegate> delegate;

- (void)drawCellWithPlanInfo:(PlanInfo *)planInfo;
@end
